﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Hotel2.management
{
    public partial class eventsAdd : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            eventAddSuccess.Visible = false;
            Break.Visible = false;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            eventAddSuccess.Visible = true;
            Break.Visible = true;
            eventAddSuccess.Text = "Event '"+eventName.Text+"' added, is to be held on "+eventDate.Text+" with "+eventTickets.Text+" tickets avaliable";
        }

        protected void CalendarEventDate_SelectionChanged(object sender, EventArgs e)
        {

            eventDate.Text = CalendarEventDate.SelectedDate.ToShortDateString();
        }
    }
}